package com.sbl.bajw.pc.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sbl.bajw.common.web.JsonResultUtil;
import com.sbl.bajw.pc.model.DeptModel;
import com.sbl.bajw.pc.service.JWTDeptService;
import com.sbl.bajw.util.JsonUtil;

@Controller
@RequestMapping("/JWTDept")
public class JWTDeptAction {
	
	@Resource
	private JWTDeptService service;
	
	@RequestMapping(value = "/getOrgManagerList")
	public @ResponseBody String getOrgManagerList(){
		List<DeptModel> models = service.getOrgManagerList();
		String result = JsonUtil.ConvertArrayToJson(models);
		return JsonResultUtil.Success(result);
	}
	
}
